#ifndef TEXTWIDGET_H
#define TEXTWIDGET_H

#include <Fl/Fl_Group.h>
#include <Fl/Fl_Value_Output.h>
#include <Fl/Fl_Value_Input.h>
#include <Fl/Fl_Box.h>
#include <Fl/Fl_Choice.h>
#include "econtainer.h"
class eContainer;
class textWidget : public Fl_Group
{
    public:
        textWidget(int x,int y);
        virtual ~textWidget();

        void sahip(eContainer *p);
        void pozisyon(int px,int py);

        static void genislikAyarla_CB(Fl_Widget *p,void * userdata);
        void genislikAyarla_CB2();

        static void yukseklikAyarla_CB(Fl_Widget *p,void * userdata);
        void yukseklikAyarla_CB2();

        static void kilit_CB(Fl_Widget *p,void *userdata);
        void kilit_CB2();

        bool kilitlimi();
        bool deletesil();
        void deletesil(bool p);
        Fl_Value_Output * xx();
        Fl_Value_Output * yy();
        Fl_Value_Input * Width();
        Fl_Value_Input * Height();
        Fl_Value_Input * R();
        Fl_Value_Input * G();
        Fl_Value_Input * B();
        Fl_Choice * Sefaf();
        Fl_Choice * Scrollv();
        Fl_Choice * Scrollh();
    protected:
    private:
        Fl_Box *etiket[11];
        Fl_Value_Output *wx;
        Fl_Value_Input *wWidth;
        Fl_Value_Input *wHeight;
        Fl_Value_Output *wy;
        Fl_Value_Input *wR;
        Fl_Value_Input *wG;
        Fl_Value_Input *wB;
        Fl_Choice *wSefaf;
        Fl_Choice *wScrollv;
        Fl_Choice *wScrollh;
        Fl_Choice *wKilit;
        eContainer *sahip_;

        bool kilitle;
        bool sildelete;
};

#endif // TEXTWIDGET_H
